import Layout from '@/layouts';
import mainLayout from '@/layouts/mainLayout';

export default {
  path: '/novel',
  component: Layout,
  redirect: '/novel/dashboard',
  name: 'novel',
  meta: {
    title: '小说管理',
    icon: 'book',
    role: 1
  },
  children: [
    {
      path: 'dashboard',
      component: () => import('@/views/novel/dashboard'),
      name: 'NovelDashboard',
      meta: { title: '仪表盘', role: 2 }
    },
    {
      path: 'list',
      component: () => import('@/views/novel/novelList'),
      name: 'NovelList',
      meta: { title: '小说列表', role: 3 }
    },
    {
      path: 'chapter/:id',
      component: () => import('@/views/novel/chapterList'),
      name: 'ChapterList',
      meta: { title: '章节管理', role: 4 },
      hidden: true
    },
    {
      path: 'category',
      component: () => import('@/views/novel/category'),
      name: 'Category',
      meta: { title: '分类管理', role: 5 }
    },
    {
      path: 'author',
      component: () => import('@/views/novel/author'),
      name: 'Author',
      meta: { title: '作者管理', role: 6 }
    },
    {
      path: 'comment',
      component: () => import('@/views/novel/comment'),
      name: 'Comment',
      meta: { title: '评论管理', role: 7 }
    },
    {
      path: 'statistics',
      component: () => import('@/views/novel/statistics'),
      name: 'Statistics',
      meta: { title: '数据统计', role: 8 }
    }
  ]
}; 